<template>
	<view>
		<my-label :labelData="labelData" @handleLabel="handleLabel"></my-label>
	</view>
</template>

<script>
	import myLabel from "@/components/my-componets/my-label.vue";
	export default {
		components: {
			myLabel
		},
		data() {
			return {
				labelData:{},
			};
		},
		onLoad(){
			let data = this.$Route.query;
			this.labelData = data;
		},
		methods:{
			
			handleLabel(content){
				this.$http.post('/api/member/business/marker/product/handle',{content:content,product_id:this.labelData.product_id}).then((res) => {
					if(res.data.status == 200){
						this.$tip.success('标注成功');
						uni.navigateBack(-1);
					} else {
						this.$tip.alert(res.data.message)
					}
					
				})
			}
		}
	}
</script>

<style lang="scss">

</style>